import { createRouter,createWebHashHistory, type RouteRecordRaw } from "vue-router"
import Home from "./views/home.vue";
import Abount from "./views/abount.vue";
import InfoB from "./views/infoB.vue";


//创建路由器
const routes:Array<RouteRecordRaw> = [  //一个一个的路由规则
{
  //路径
   path:'/home',
 //组件绑定
   component:Home
},
{
 //路径
  path:'/abount',
//组件绑定
  component:Abount
},
{
  //路径
   path:'/infoB',
 //组件绑定
   component:InfoB
 }
];
const router = createRouter({
	history: createWebHashHistory(),
	routes
});

export default router